from django import forms

from apps.operation.models import UserFavorite

class UserFavForm(forms.ModelForm):
    class Meta:
        model = UserFavorite  # 继承 UserFavorite 数据表的字段
        fields = ['fav_id', 'fav_type']
